package com.wjm.vo;

/**
 * Data:2022年08月17日
 * Author:wjm
 * Content:
 *
 *  将user.txt中的用户信息封装在这个类中，
 *  目的是为了在查询的时候我们可以动态的拿到这些数据（用户信息）然后反馈给客户端页面
 *
 */
public class User {
    private String username;
    private String password;
    private String sex;
    private int age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
